home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / TCP_IP / TNOS230S / ASY.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-24  |  960 b   |  45 lines

  1. #ifndef _ASY_H
  2. #define _ASY_H
  3.  
  4. #ifndef _GLOBAL_H
  5. #include "global.h"
  6. #endif
  7.  
  8. #ifndef _MBUF_H
  9. #include "mbuf.h"
  10. #endif
  11.  
  12. #ifndef _IFACE_H
  13. #include "iface.h"
  14. #endif
  15.  
  16. #define _ASY_MAX 5               /* Five asynch ports allowed on the PC */
  17. extern int ASY_MAX;
  18.  
  19. #define SLIP_MODE       0
  20. #define AX25_MODE       1
  21. #define NRS_MODE        2
  22. #define UNKNOWN_MODE    3
  23. #define PPP_MODE        4
  24.  
  25. /* In 8250.c: */
  26. int asy_init (int dev,struct iface *ifp,char *arg1,char *arg2,
  27.     int16 bufsize,int trigchar,char monitor,long speed,int force,int triglevel, int polled);
  28. int32 asy_ioctl (struct iface *ifp,int cmd,int set,int32 val);
  29. int asy_speed (int dev,long bps);
  30. int asy_send (int dev,struct mbuf *bp);
  31.  
  32. int asy_stop (struct iface *ifp);
  33. int get_asy (int dev);
  34.  
  35. #ifdef TIPMAIL
  36. struct suspended {
  37.     struct iface *ifp;
  38.     unsigned timeout;
  39.     char modem;
  40. };
  41. extern struct suspended *Tipsuspended;
  42. #endif
  43.  
  44. #endif  /* _ASY_H */
  45.